
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>

<html>
	<head>
		<title>诚信等级</title>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<link href="../../../js/thickbox.css" rel="stylesheet" type="text/css" />
		<script src="../../../js/jqui/jquery-1.2.6.min.js"
			type="text/javascript"></script>
		<script src="../../../js/jqtool.js" type="text/javascript"></script>
		<script src="../../../js/ui.js" type="text/javascript"></script>
		<script src="../../../js/thickbox-compressed.js"
			type="text/javascript"></script>
		<link href="../../../css/Public.css" type="text/css" rel="stylesheet" />
		<link href="../../../css/PublicEdit.css" type="text/css"
			rel="stylesheet" />
		<SCRIPT src="../../../js/selectDate.js"></SCRIPT>
		<style type="text/css">
<!--
.STYLE1 {
	font-size: 12px
}

.STYLE3 {
	font-size: 12px;
	font-weight: bold;
}

.STYLE4 {
	color: #03515d;
	font-size: 12px;
}

.dleft {
	width: 60px;
	border: #FF0000 1px solid;
}

.dright {
	width: 100px;
	border: green 1px solid;
}

.sortHead {
	background-image: url(../../../images/updown.gif);
	background-repeat: no-repeat;
	background-position: center right;
	cursor: pointer;
}

.sortUp {
	background-image: url(../../../images/desc.gif);
	background-repeat: no-repeat;
	background-position: center right;
	cursor: pointer;
}

.sortDown {
	background-image: url(../../../images/asc.gif);
	background-repeat: no-repeat;
	background-position: center right;
	cursor: pointer;
}

#viewbox {
	position: absolute;
	left: 320px;
	width: 450px;
	margin: 10px;
	padding: 20px 20px 20px;
	background: #eee;
	border: 2px solid #42CBDC;
}
-->
</style>

		<script type="text/javascript">
		function checkData(){
			var mer_level = document.getElementById("mer_level").value;
			var content = document.getElementById("hiddencontent").value;
			if(!isInt(mer_level)){
				alert("请输入数字");
			}else{
				if(parseInt(mer_level)>(parseInt(content)+1) || parseInt(mer_level)<(parseInt(content)-1)){
					alert("只能逐级增减");	
					document.getElementById("mer_level").focus();
					window.event.returnValue = false;
	            	return;
				}
			}
		}
		 function isInt(str){
				//var reg = /^(-|\+)?\d+$/ ;
				if(str==0)return true;
				//var reg = /^[0-9]\d*$/;	
				//要求数字
				var reg = /^[0-9]*[1-9][0-9]*$/;
				return reg.test(str);			
			}
      	function Option(mno){
			var mer_check = document.getElementById("mer_check").value;
				
			window.location.href="/admin/merchant/singleInfo?coid="+mer_check+"&mid="+mno;
        }
      </script>

	</head>
	<body marginheight="0">
	 <form action="/admin/merchant/integrity?mno=${KsMer.ksMerNo }" onsubmit="checkData();" method="post" >
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td height="30" background="../../../images/tab_05.gif">
					<table width="100%" border="0" cellspacing="0" cellpadding="0">
						<tr>
							<td width="12" height="30">
								<img src="../../../images/tab_03.gif" width="12" height="30" />
							</td>
							<td>
								<table width="100%" border="0" cellspacing="0" cellpadding="0">
									<tr>
										<td width="46%" valign="middle">
											<table width="100%" border="0" cellspacing="0"
												cellpadding="0">
												<tr>
													<td width="5%">
														<div align="center">
															<img src="../../../images/tb.gif" width="16" height="16" />
														</div>
													</td>
													<td width="95%" class="STYLE1">
														<span class="STYLE3">${KsMer.ksFullName } </span>
													</td>
													<td>
														<select name="mer_check" id="mer_check"
															style="width: 120px"
															onchange="Option(${KsMer.ksMerNo })">
															<option value="0" selected>
																------选择查看------
															</option>
															<option value="1">
																基本信息
															</option>
															<option value="2">
																基本设置
															</option>
															<option value="3">
																诚信等级
															</option>
														</select>
													</td>
												</tr>
											</table>
									</tr>
								</table>
							</td>
							<td width="16">
								<img src="../../../images/tab_07.gif" width="16" height="30" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr>
		</table>
		<div class="l_f_body">
			<div class="l_f_body_row">
				<div class="l_f_body_div1">
					<span class="STYLE3">诚信信息--></span>信誉保证金:
				</div>
				<div class="l_f_body_div5">
					 <select style="width: 120px" name="mer_deposit" id="mer_deposit">
						<option value="0" selected="selected">未缴纳</option>
						<option value="1">一级</option>
						<option value="2">二级</option>
						<option value="3">三级</option>
					</select>(原保证金级别为：${KsMer.merBaseSetID.deposit }级)
				</div>
			</div>
			<div class="l_f_body_row">
				<div class="l_f_body_div1">
					实地认证:
				</div>
				<div class="l_f_body_div5">
					<select style="width: 120px" name="integrity" id="integrity">
						<option value="0">未认证</option>
						<option value="1" selected="selected">已认证</option>
					</select>
				</div>
			</div>
			<div class="l_f_body_row">
				<div class="l_f_body_div1">
					积分奖惩:
				</div>
				<div class="l_f_body_div5">
					 <input type="text"  name ="mer_level" id="mer_level" style="width:120px"/>(原积分等级为：<span id="level" title="adefaef">${KsMer.merBaseSetID.merlevel }</span>级&nbsp; 注：只能逐级增减进行奖励和惩罚)
					 <input type="hidden"  name ="hiddencontent" id="hiddencontent" value="${KsMer.merBaseSetID.merlevel }"/>
				</div>
			</div>
			<div class="center l_f_body_foot">
			</div>
		</div>
		<div class="center l_f_body_foot">
			<input type="submit" id="button" name="button" class="button2_60" value="设置" />
			<input type="button" class="button2_60"
				onclick="javascript:history.go(-1);" value=" 返回" />
		</div>
		</form>
	</body>
</html>
